/*myFirst 2112SnapIn

 A snapIn needs to have a function to be hooked up by the portal system.

*/

/*
  Create your own !UNIQUE! Namespace by using the JAVA convention of
  reversing your domain name or get a key from 2112Portals, or generate a GUID
  The Problem with domains are:
  1. You could not use domains starting with numbers (like ours 2112Portals.com)
     Since JS does not eval variable starting with numbers.
     So you could circumvent it by adding an underscore.
  2. Well - for every dot-separated string an object would be created.
     So on large Portals with many snapIns this may cause some performance
     issues on the clients.
  3. My recommendation: 
     Use a single unique ID i.e. turn the dots in your Domain Name 
     into myDomain_de/myDomain_net.
*/

var oMenuBar ;

NS2112.namespace("_2112Portals_") ;

NS2112._2112Portals_.snapTimeJerusalem = function(el, userConfig)
{   
   
   this.constructor.superclass.constructor.call(this, el, userConfig);
   this.Title = "Jerusalem" ;
   this.Name = 'JerusalemTime';
   this.Width = 150 ;
   this.Height = 150 ;
   //The load callback - load your stuff here
   this.load = function(myDiv)
   {  
      //'HELLO1'; 
      var myContent = '<div align=center><embed src=\"http://www.worldtimeserver.com/clocks/wtsclock001.swf?color=6495ED&wtsid=IL\" width=\"100\" height=\"100\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" /></div>';
      return myContent;
   }

   this.unload = function()
   {
      //oMenuBar.destroy() ;
   }
   //remember - u need a unique name.
   
}

NS2112.extend(NS2112._2112Portals_.snapTimeJerusalem, NS2112.snapIn12);

NS2112.registerSnapIn(new NS2112._2112Portals_.snapTimeJerusalem(), "com.2112Portals.TimeJerusalem") ;   











